package hhm.utils;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CallerRunning {

	// to store the log data
	static public StringBuffer sb = new StringBuffer();

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		long startMills = System.currentTimeMillis();
		long nowMills = startMills;

		// call a method 1 times in 5 second
		CheckCalledTimesInPeriod called = new CheckCalledTimesInPeriod(5, 1);

		// test run in 6 second
		while (nowMills <= (startMills + 60000)) {
			nowMills = System.currentTimeMillis();
			called.execute();
		}

	}

}
